package com.muyu.cart.domain.req;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 勾选/取消购物车商品请求
 *
 * @author JiaCheng
 * @version 1.0
 * @since 2025-09-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CartToggleSelectReq {

    /**
     * 购物车ID列表
     */
     @NotNull(message = "购物车ID列表不能为空")
     @Size(min = 1, max = 100, message = "批量操作数量必须在1-100之间")
    private List<Long> cartIds;

    /**
     * 是否选中
     */
     @NotNull(message = "选择状态不能为空")
    private Boolean isSelected;
}